<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加的小店</title>
<link href="/css/base.css" type="text/css" rel="stylesheet" />
<link href="/css/manage.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.default.js"></script>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<!--[if ie]><link href="/css/ie.css" type="text/css" rel="stylesheet"><![endif]-->

<script type="text/javascript">

</script>
</head>

<body>
	<!-- head -->
   <?php $this->load->view('head');?>
    <!-- head--end-->
    <?php $data['curstyle'] = 'store'?>
    <!-- body -->
    <div class="w100p mt40 mb20">
    	<div class="w903 mg">
        	<div class="box_s1">
            	<div class="b_head"></div>
                <div class="content m_pd_s1">
                	<!-- manage-top -->
                	<?php $this->load->view('member/mangtop',$data)?>
                    <!-- manage-top--end-->
                    
                    <!-- manage-det-->
                   <div class="clearfix">
                    	<div class="box_s3 fl">
                        	<div class="b_head"></div>
                            <?php $data['leftstyle'] = 'addedstore'?>
                            <?php $this->load->view('member/storeleft',$data)?>
                            <div class="b_foot"></div>
                        </div>
                        
                        <!-- right-ope-->
                        <div class=" m_layout_s1">
                        	<div class="m_pd_s2">
                            	<div class="form_box ">
                                	<h3><a href="#" class="def_btn_s2 fr delete" id="delete">删除</a>我添加的小店</h3>
                                    <div class="form_data_box">
                                        <table class="form_list mine_add" width="100%">
                                            <thead>
                                                <tr>
                                                    <th width="135">小店名称</th>
                                                    <th width="145">小店地址</th>
                                                    <th width="50" class="tc">评论</th>
                                                    <th width="50" class="tc">收藏</th>
                                                    <th width="50" class="tc">推荐</th>
                                                    <th width="50" class="tc">状态</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            	<?php foreach ($storeList as $store):?>
                                                <tr>
                                                    <td><a target="_blank" href="<?php echo site_url('store?id='.$store['id'])?>" class="s_name"><?php echo $store['name']?></a></td>
                                                    <td><span class="address"><?php echo $store['address']?></span></td>
                                                    <td class="tc"><?php echo $store['comments']?></td>
                                                    <td class="tc"><?php echo $store['favorites']?></td>
                                                    <td class="tc"><?php echo $store['recommends']?></td>
                                                    <td class="tc"><a href="<?php echo site_url('member/editstore?id='.$store['id'])?>">编辑</a></td>
                                                </tr>
                                                <?php endforeach;?>
                                            </tbody>
                                        </table>
                                    </div>
                                    
                                    
                                </div>
                                <div class="btn_fy">
                                <?php echo $this->pagination->create_links()?>
                                </div>
                            </div>
                        </div>
                        <!-- right-ope--end-->
                        
                        <div class="clear"></div>
                    </div>
                    <!-- manage-det--end-->
                    
                </div>
                <div class="b_foot"></div>
            </div>
        </div>
    </div>
    <!-- body--end-->
    
    <!-- foot-->
   <?php $this->load->view('foot')?>
    <!-- foot--end-->	
</body>
<script type="text/javascript">
	function upload_photo(obj){
		var file_name = $(obj).val();
		$("#photo_text").val(file_name);
	}
</script>
</html>
